# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-a30
pkgdesc="Samsung Galaxy A30"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="linux-samsung-a30 mkbootimg postmarketos-base"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Samsung A30 nonfree firmware"
	depends="firmware-samsung-a30"
	mkdir "$subpkgdir"
}


sha512sums="
110d381091c27ce02f1766f36ce3bb86d35eb8d8e22c2b06b03c60c7c15b98d0a434daa09215b56f1d2faf8aaf5704abe04d9d58fcb60054c79f309f97bd1f36  deviceinfo
04445194a5245d08fcf1b425bff1d8dd6a8fdacafdc151223634299a35f1eb20fbd733979b58bcfd854e16fde02629c28453f840d6c9dc34fc15d4fcc8aa4302  initfs-hook.sh
"
